package com.example.layoutwork503xk;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

;
    public class MainActivity extends AppCompatActivity {
        private Button button;

        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate ( savedInstanceState );
            setContentView ( R.layout.activity_main );
            button = (Button) findViewById ( R.id.user_register_button );
            button.setOnClickListener ( new View.OnClickListener () {
                @Override
                public void onClick(View v) {
                    Intent intent = new Intent ();
                    intent.setClass ( MainActivity.this, zhuceActivity.class );
                    startActivity (intent );
                }
            } );
        }
    }
